from polianxi.Base import Base
from time import sleep
from selenium.webdriver.common.by import By

class Page(Base):
    clickSignIn = (By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    username =(By.NAME,'username')
    password = (By.NAME,'password')
    login = (By.CLASS_NAME,'finish-btn')
    def step1(self):
        self.click(self.clickSignIn)
    def step2(self):
        self.send_keys(self.username,'15232008902')
    def step3(self):
        self.send_keys(self.password,'123456')
    def step4(self):
        self.click(self.login)
    def a3mall(self):
        self.open_url('http://10.59.9.14:7003/')
        sleep(2)
        self.step1()
        sleep(2)
        self.step2()
        self.step3()
        sleep(10)
        self.step4()

